package org.mspring.mlog.web.module.admin;

import org.mspring.mlog.service.InstallService;
import org.mspring.platform.web.freemarker.widget.stereotype.Action;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 *
 * @author Gao Youbo
 * @since 2014年5月19日
 */
@Action
@RequestMapping("/admin/tools")
public class Admin_ToolsWidget extends Admin_AbstractWidget {
    @Autowired
    private InstallService installService;

    @RequestMapping("/install")
    @ResponseBody
    public String install() {
        installService.initTreeItems();
        return "true";
    }
}
